<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    /* 
PingFang SC ExtraLight         苹方 特细

PingFang SC Light                苹方 细体

PingFang SC Regular             苹方 常规

PingFang SC Medium            苹方 中等

PingFang SC Bold                 苹方 粗体

PingFang SC Heavy               苹方 特粗
 */


    /* @font-face {
      font-family: 'PingFangSC';
      src: url('../资源/PingFangSC-Light.woff2') format('woff2');
      font-display: swap;
      font-weight: 100;
      font-style: normal;
    } */

    @font-face {
      font-family: 'PingFangSC';
      src: url('../资源/PingFangSC-Regular.woff2') format('woff2');
      font-display: swap;
      font-weight: 400;
      font-style: normal;
    }

    /* @font-face {
      font-family: 'PingFangSC';
      src: url('../资源/PingFangSC-Medium.woff2') format('woff2');
      font-display: swap;
      font-weight: 700;
      font-style: normal;
    } */

    /* @font-face {
      font-family: 'PingFangSC';
      src: url('../资源/PingFangSC-Semibold.woff2') format('woff2');
      font-display: swap;
      font-weight: 900;
      font-style: normal;
    } */




    .test1 {
      font-family: PingFangSC;
      font-size: 30px;
    }

    .test2 {
      font-family: PingFangSC;
      font-weight: bold;
      font-size: 30px;

    }
  </style>
</head>

<body>
  <div class="test1">
    测试文字1
  </div>
  <div class="test2">
    测试文字2
  </div>
</body>

</html>